// import axios from "axios";
import {MyRequestBase} from "~/api/my_axios.js"

export function getLiuLiang(_page = 1) {
  return MyRequestBase.get(
    '/%2Fliuliang/Liuliang/',
    {page: _page}
  );
  // http://279uf3.natappfree.cc/%2Fliuliang/Liuliang/?page=1
}

export function getLiuLiang2(_id = 1) {
  return MyRequestBase.get(`/%2Fliuliang/Liuliang/tt/${_id}/`);
  // http://iq2tyf.natappfree.cc/%2Fliuliang/tt/1/
}

// 后台数据 getAttackType也用于大屏
export function getAttackType() {
  return MyRequestBase.get(`/%2Fhome_page/Attack_type/`)
  // http://iq2tyf.natappfree.cc/%2Fhome_page/Attack_type/
}

export function getWeekData() {
  return MyRequestBase.get(`/%2Fhome_page/Real_time_traffic_week/`)
}

export function getMonthData() {
  return MyRequestBase.get(`/%2Fhome_page/Real_time_traffic_month/`)
}

export function getHourData() {
  return MyRequestBase.get(`/%2Fhome_page/Real_time_traffic_24hour/`)
}

export function getIPTopData() {
  return MyRequestBase.get(`/%2Fhome_page/top_ip/`)
}

export function getPortPieData() {
  return MyRequestBase.get(`/%2Fliuliang/simple/`)
}